import React from 'react'
const baseUrl = '/user/api/b'

//首页弹窗分页
export async function apiPopupPage(params) {
  return await React.$postJson(baseUrl + '/popUp/page', params);
}
//首页弹窗编辑、新建
export async function apiInsertOrUpdate(params) {
  return await React.$postJson(baseUrl + '/popUp/insertOrUpdate', params);
}
//首页弹窗查看详情
export async function apiPopupView(params) {
  return await React.$get(baseUrl + '/popUp/view',params);
}
//首页弹窗删除
export async function apiPopupDel(params) {
  return await React.$get(baseUrl + '/popUp/del',params);
}
// 弹窗开关 
export async function apiPopupOpen(params) {
  return await React.$postJson(baseUrl + '/popUp/open',params);
}